package org.lease.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.lease.model.dto.AppointmentDTO;
import org.lease.model.entity.ViewAppointment;
import org.lease.model.enums.AppointmentStatus;
import org.lease.model.query.AppointmentPageQuery;
import org.lease.model.vo.AppointmentDetailVo;
import org.lease.model.vo.AppointmentItemVo;

import java.util.List;

public interface ViewAppointmentService extends IService<ViewAppointment> {
    IPage<AppointmentDTO> pageQueryAppointment(AppointmentPageQuery query);

    boolean updateAppointmentStatus(Long id, AppointmentStatus status);

    List<AppointmentItemVo> listItem(Long userId);

    AppointmentDetailVo getDetailById(Long id);
}
